<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<link href="${ctx}/assets/css/minimal/yellow.css?v=${version}"
	type="text/css" rel="stylesheet">
<div class="container">
	<div id="project-inroduction">
		<!--填写申请-->
		<div class="apply">
			<div class="container-fluid" id="user-apply">
			<div id="loading-load" style="display: none;text-align: center;color:#834313;"></div>
				<div class="row-fluid" id="panel-308006">
					<form class="user-apply-form" id="user-apply-form" >
						<input name="user.id" type="hidden"	value=<shiro:principal property="id"/> >
						<input type="hidden" name="id" id="institutionId" value="" >
						<table class="table">
							<tr class="org-apply-tr1">
								<td colspan="2">申请认证&nbsp;（<span>*</span>为必填）
								</td>
							</tr>
							<tr>
								<td colspan="2"><small><font color="#834313">温馨提示：</font>申请认证审核需要1-2个工作日，审核结果将发送到系统通知。</small></td>
							</tr>
							<tr>
								<td colspan="2"><font color="#834313">认证YAMI个人服务商信息</font></td>
							</tr>

							<tr>
								<td width="98px"><span>*</span>昵称</td>
								<td><input type="text" id="startQualifierName"
									class="orgapply-input required" name="name"></td>
							</tr>
							<tr>
								<td width="98px"><span>*</span>邮箱</td>
								<td><input type="email" id="applicantEmail"
									class="orgapply-input required" name="applicantEmail"><span id="emailNotice"></span></td>
							</tr>
							<tr>
								<td><span>*</span>所在地区</td>
								<td>
									<div class="controls">
										<input type="hidden" id="region-province-id" name="provinceId">
										<input type="hidden" id="region-city-id" name="cityId"> <input
											type="hidden" id="region-county-id" name="districtId">
											 <select id="region-province-select" class="span2"><option>省</option></select>
										<select id="region-city-select" class="span2"><option>市</option></select>
										<select id="region-county-select" class="span2"><option>县、区</option></select>
									</div>
								</td>
							</tr>
							<tr class="">
								<td><span>*</span>联系电话</td>
								<td><input type="text" name="applicantPhone" id="applicantPhone" class="required"/>
								<span id="applicantPhoneNotice" class="phone_number "></span>
							</tr>
							<tr>
								<td><span>*</span>详细地址</td>
								<td><input type="text" id="appaddress" class="orgapply-input required"
									name="address"></td>
							</tr>
							<tr>
								<td><span>*</span>简介</td>
								<td><textarea id="startQualifierInfo"
										placeholder="最长不超过255个字" style="width: 391px;"
										name="description" class="required"></textarea></td>
							</tr>
							<tr>
								<td><span>*</span>登记证书</td>
								<td class="upload-img"><input id="verifyDoc1" class="required" type="hidden"
									value="" name="verifyDoc_1"/><input type="file"
									class="file-input" name="" id="file-doc1"> <input
									type="text" value="上传" class="upload-front" readonly>
									<div id="progress" class="verifyDoc1-name">
										<div class="imgdesc">
										清晰彩色原件扫描件或数码照。图片最佳尺寸为570*436像素，或控制在同等比例，不超过1mb！
										</div>
									</div>
									<div id="verifyDoc1-preview" class="preview"></div>
									</td>
							</tr>
							<tr>
								<td style=""><span>*</span>机构代码</td>
								<td class="upload-img"><input id="verifyDoc2" class="required" type="hidden"
									value="" name="verifyDoc_2" /><input type="file"
									class="file-input" name="" id="file-doc2"> <input
									type="text" value="上传" class="upload-front" readonly>
										<div id="progress" class="verifyDoc2-name">
											<div class="imgdesc">
										清晰彩色原件扫描件或数码照。图片最佳尺寸为570*436像素，或控制在同等比例，不超过1mb！
										</div>
										</div>
									<div id="verifyDoc2-preview" class="preview"></div>
									</td>
							</tr>
							<tr class="top-line">
								<td colspan="2"><font color="#834313">申请运营者信息</font></td>
							</tr>
							<tr>
								<td colspan="2"><font color="#aaa">请填写申请人证明材料及联系方式，以下您所提交的材料仅供YAMI认证使用，不会对外公开，请放心填写。</font></td>
							</tr>
							<tr>
								<td><span>*</span>申请人姓名</td>
								<td><input type="text" id="userName" name="applicantName" class="required" /></td>
							</tr>
							<tr>
								<td><span>*</span>身份证号码</td>
								<td><input type="text" name="identityCode" class="required" id="idCard"/><span id="idCardNoNotice" class="phone_number"></span></td>
							</tr>
							<tr>
								<td><span>*</span>社会职务</td>
								<td><input type="text" name="applicantPost" id="applicantPost" class="required"/></td>
							</tr>
							<tr>
								<td><span>*</span>手机号码</td>
								<td><input type="text" name="applicantTelephone"
									id="userPhoneNo" class="required" /><span id="phoneNoNotice" class="phone_number "></span><br> <font color="#aaa">下载填写《运营者授权书》（<a href="${ctx}/assets/img/docs/运营者授权书.doc">点击此处下载</a>），填写完整后加盖红色公章，上传清晰的公函扫描件或照片。支持jpg、png、gif格式， 大小不超过1M/张。
								</font></td>
							</tr>
							<tr>
								<td><span>*</span>运营者授权书</td>
								<td class="upload-img"><input id="verifyAuth" class="required" type="hidden"
									value="" name="verifyAuth" /><input type="file"
									class="file-input" name="" id="file-auth"> <input
									type="text" value="上传" class="upload-front" readonly>
									<div id="progress" class="verifyAuth-name">
										<div class="imgdesc">
										清晰彩色原件扫描件或数码照。图片最佳尺寸为570*436像素，或控制在同等比例，不超过1mb！
										</div>
									</div>
									<div id="verifyAuth-preview" class="preview"></div>
									</td>
							</tr>
							<!--add by fudongdong-->
							<tr>
								<td><span>*</span>身份证正面</td>
								<td class="upload-img"><input id="verifyIdCard1" class="required" type="hidden"
									value="" name="verifyIdCard1"/><input type="file"
									class="file-input" name="" id="file-idcard1"> <input
									type="text" value="上传" class="upload-front" readonly>
									<div id="progress" class="verifyIdCard1-name">
									<div class="imgdesc">
										清晰彩色原件扫描件或数码照。图片最佳尺寸为570*436像素，或控制在同等比例，不超过1mb！
										</div>
									</div>
									<div id="verifyIdCard1-preview" class="preview"></div>
									</td>
							</tr>
							<tr>
								<td style=""><span>*</span>身份证背面</td>
								<td class="upload-img"><input id="verifyIdCard2" class="required" type="hidden"
									value="" name="verifyIdCard2" /><input type="file"
									class="file-input" name="" id="file-idcard2"> 
									<input type="text" value="上传" class="upload-front" readonly>
									<div id="progress" class="verifyIdCard2-name">
										<div class="imgdesc">
										清晰彩色原件扫描件或数码照。图片最佳尺寸为570*436像素，或控制在同等比例，不超过1mb！
										</div>
									</div>
									<div id="verifyIdCard2-preview" class="preview"></div>
									</td>
							</tr>
							<tr>
								<td></td>
								<td><input class="raise-submit" type="button" value="申 请" id="orgapply-submit"/>
								<!-- <a class="apply-submit">申 请</a> --></td>
							</tr>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- 预览 -->
<div class="modal hide fade" id="pre-img-modal">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h5>预览</h5>
  </div>
  <div class="modal-body">
    
  </div>
</div>
<c:if test="${env == 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js-dist/account/verify-orgapply-page");
	</script>
</c:if>
<c:if test="${env != 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js/account/verify-orgapply-page");
	</script>
</c:if>	
